//
//  LBCell.m
//  LBHorizontalLoopView_Example
//
//  Created by liubo on 2021/8/29.
//  Copyright © 2021 liuboliu. All rights reserved.
//

#import "LBCell.h"

@interface LBCell ()

@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation LBCell

- (void)setUpUI
{
    [self addSubview:self.titleLabel];
    
}

- (void)updateWithModel:(NSString *)model
{
    self.titleLabel.text = model;
}

#pragma mark - lazy load
- (UILabel *)titleLabel
{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 150)];
        _titleLabel.textColor = [UIColor greenColor];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.backgroundColor = [UIColor lightGrayColor];
    }
    return _titleLabel;
}


@end
